/**
 * Created by zhulingxiao on 2017/6/8.
 */
import { MENU_UPDATE } from '../actions/menu'

const initialState = { data : [] };

const menu = (state = initialState, action) => {

  switch (action.type) {

    case MENU_UPDATE:
      return Object.assign({}, state, {
        data:action.data
      });

    default:
      return state
  }

};

export default menu
